package org.JWCB.job.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.JWCB.job.domain.message.entity.MessageText;
import org.JWCB.job.mapper.message.MessageTextMapper;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Service
public class MessageTextService extends ServiceImpl<MessageTextMapper, MessageText> {

    @Transactional(rollbackFor = Exception.class)
    public boolean batchSave(List<MessageText> messageTextList) {
        return saveBatch(messageTextList);
    }
}
